﻿

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>介绍 - vue.js</title>
		<script src="../vue/dist/vue.js"></script>
<style type="text/css">
<!--
.fade-enter {
	display:none;
}
.fade-enter-active, .fade-leave-active {
  transition: opacity 5s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
  opacity: 0;
}
-->
</style>
    </head>
    <body>

<div id="demo">
  <button v-on:click="show = !show">
    Toggle
  </button>
  <transition name="fade">
    <p v-if="show">hello</p>
  </transition>
</div>

    </body>

<script type="text/javascript">
<!--

new Vue({
  el: '#demo',
  data: {
    show: true
  }
})

</script>

</html>
